import request from '../utils/request'
import { qss, base } from '../utils/request'

export const login = (loginName, paw) => { return request.post(`${base}/dmz/login.json`, qss({ loginName: loginName, paw: paw })) }

export const getInfo = token => { return request.post(`${base}/dmz/token.json`, qss({ token: token })) }

export function logout() {
  return request({
    url: '/user/logout',
    method: 'post'
  })
}
